package com.haiheng.voiceandbook.common

import android.annotation.SuppressLint
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize

@SuppressLint("ParcelCreator")
@Parcelize
class DocDto : Parcelable {
    var type = 0 // 显示类型
    var treeDepth = 0 // 路径的深度
    var resId: String? = null
    var title: String? = null
    var expand: Boolean = true // 是否展开
    var resHref: String? = null
    var fragmentId: String? = null
    var children: List<DocDto>? = null
    override fun toString(): String {
        return "DocDto(resId=$resId, title=$title, resHref=$resHref, fragmentId=$fragmentId, children=$children)"
    }

    companion object {
        const val ITEM_TYPE_PARENT = 0
        const val ITEM_TYPE_CHILD = 1
    }


}


